import java.util.Scanner;

/**
 * @author caesar
 * @date 2025/7/4
 * @apiNote
 */

public class overloadTest2 {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);

        System.out.print("请输入想求的三角形的底和高：");
        int base = input.nextInt();
        int height = input.nextInt();
        System.out.println(TriangleCalculatortools.area(base,height));

        System.out.print("请输入想求的三角形的边长：");
        double a = input.nextDouble();
        double b = input.nextDouble();
        double c = input.nextDouble();


        System.out.println(TriangleCalculatortools.area(a,b,c));
        input.close();
    }
}
